<?php
/**
 * 功能：默认控件器操作
 * 说明：
 * 创建日期：2012-8-28
 * 更新日期：
 * 作者：Mirze
 * 补充说明： 
 * 
 */
class IndexAction extends Action {
	public function _initialize(){
		//echo "_initialize ";
	}
	/**  **/
	public function _empty()
	{
		echo "action not found";		
	}

    public function index(){
		echo "index/index";
		$get = $this->_get();
		dump($get);
		$param = $this->_param();
		dump($param);
		$url = $_GET["_URL_"];
		dump($url);

		$this->assign('test', 'hello');

		$this->display();
    }
	/**
	 * (功能描述) 登录验证
	 *
	 * @param 
	 * @return
	 */
	public function checkLogin()
	{
		$_post = $this->_post();
		dump($_post);

		echo "index/checkLogin<br/>";
		echo C('DB_TYPE');
		//dump(C());

		$m = M('user');
		$res = $m->select();
		dump($res);
	}
}